package cas.ihep.functions;

import scala.Tuple2;

import java.io.Serializable;

public abstract class FunctionP1P2Tuple2 <T0,T1,T2,T3,R> extends FunctionTuple2<Tuple2<T0,T1>,Tuple2<T2,T3>,R>
        implements Serializable{

    public abstract R call(T0 t0,T1 t1,T2 t2,T3 t3);

    @Override
    public R call(Tuple2<T0, T1> t0T1Tuple2, Tuple2<T2, T3> t2T3Tuple2) {
        return call(t0T1Tuple2._1(),t0T1Tuple2._2(),
                t2T3Tuple2._1(),t2T3Tuple2._2());
    }
}
